package ch02_data.enums;

/**
 * The class/interface 枚举类直接实现接口方法
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
public enum EnumMain04 implements Info {
    SEX_MAIN(1, "男"),
    SEX_GIRL(2, "女");

    private final Integer type;
    private final String typeName;

    EnumMain04(Integer type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public Integer getType() {
        return type;
    }

    public String getTypeName() {
        return typeName;
    }

    @Override
    public void show() {

    }
}

interface Info {
    void show();
}
